package com.dp.factory.simple_factory.service.impl;

import com.dp.factory.simple_factory.entity.AwardInfo;
import com.dp.factory.simple_factory.entity.ResponseResult;
import com.dp.factory.simple_factory.service.IFreeGoods;

/**
 * @Author: Ruomeng
 * @Date: 2024/11/26
 * @Description : design-pattern
 * Youku会员服务
 * @Version: 1.0
 */
public class YoukuMemberFreeGoods implements IFreeGoods {

    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        System.out.println("发放优酷会员" + awardInfo.getAwardNumber() + "到手机号：" + awardInfo.getExtMap().get("phone"));
        return new ResponseResult("200", "Youku会员发放成功！");
    }
}
